const express = require('express');

const router = express.Router();

//特殊情况
router.post('/login', (req, res) => {
  //4. 获取请求体的数据
  console.log(req.body.username);
  res.send('请求体数据的获取');
});

router.get('/admin', (req, res) => {
  res.send('后台');
})

router.get('/setting', (req, res) => {
  res.send('设置');
})

module.exports = router;